#!/bin/bash
echo "Start of add_packages.sh"
echo "Overriding a number of OS-level standard settings and retrieving all standard Ubuntu packages required"
echo "session required  pam_limits.so" >> /etc/pam.d/common-session
echo "mysql            soft    nofile         32768" >> /etc/security/limits.conf
echo "mysql            hard    nofile         32768" >> /etc/security/limits.conf
echo "tomcat55         soft    nofile         32768" >> /etc/security/limits.conf
echo "tomcat55         hard    nofile         32768" >> /etc/security/limits.conf
echo "root             soft    nofile         32768" >> /etc/security/limits.conf
echo "root             hard    nofile         32768" >> /etc/security/limits.conf
debconf-set-selections <<< 'mysql-server-5.0 mysql-server/root_password password conimbo'
debconf-set-selections <<< 'mysql-server-5.0 mysql-server/root_password_again password conimbo'

apt-get -qy install apache2 apache2-threaded-dev apachetop php5 php-pear php-xml-parser php5-curl php5-dev php5-gd php5-mcrypt php5-mysql mysql-client mysql-server rsync unzip openjdk-6-jdk tomcat5.5 expect
echo "End of add_packages.sh"
